<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TImageDrawType 枚举类型参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="enumawtk_1_1_t_image_draw_type.html">TImageDrawType</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="enumawtk_1_1_t_image_draw_type-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TImageDrawType 枚举类型参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ade583fca02cb013dcdb10729172253ea"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#ade583fca02cb013dcdb10729172253ea">value</a> ()</td></tr>
<tr class="separator:ade583fca02cb013dcdb10729172253ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a388ccfbd58159ddc7bbacc0012d014de"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="enumawtk_1_1_t_image_draw_type.html">TImageDrawType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a388ccfbd58159ddc7bbacc0012d014de">from</a> (int value)</td></tr>
<tr class="separator:a388ccfbd58159ddc7bbacc0012d014de"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a576ace3658276d05e4d99c8139c82ade"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a576ace3658276d05e4d99c8139c82ade">DEFAULT</a> =(IMAGE_DRAW_DEFAULT())</td></tr>
<tr class="separator:a576ace3658276d05e4d99c8139c82ade"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea3d45e849a8ead37190cd51475f8780"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#aea3d45e849a8ead37190cd51475f8780">CENTER</a> =(IMAGE_DRAW_CENTER())</td></tr>
<tr class="separator:aea3d45e849a8ead37190cd51475f8780"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94b568d10373b0848a367bbd64911a7f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a94b568d10373b0848a367bbd64911a7f">ICON</a> =(IMAGE_DRAW_ICON())</td></tr>
<tr class="separator:a94b568d10373b0848a367bbd64911a7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adac9b1db819a07d79f8c86a43340c110"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#adac9b1db819a07d79f8c86a43340c110">SCALE</a> =(IMAGE_DRAW_SCALE())</td></tr>
<tr class="separator:adac9b1db819a07d79f8c86a43340c110"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e0907cecac16b8cb2d7422ec75f61df"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a4e0907cecac16b8cb2d7422ec75f61df">SCALE_AUTO</a> =(IMAGE_DRAW_SCALE_AUTO())</td></tr>
<tr class="separator:a4e0907cecac16b8cb2d7422ec75f61df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e8cececb879bca17c5264fa6736f2ac"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a1e8cececb879bca17c5264fa6736f2ac">SCALE_DOWN</a> =(IMAGE_DRAW_SCALE_DOWN())</td></tr>
<tr class="separator:a1e8cececb879bca17c5264fa6736f2ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14b35c6b90e6088a46f7cc6882b4a6a8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a14b35c6b90e6088a46f7cc6882b4a6a8">SCALE_W</a> =(IMAGE_DRAW_SCALE_W())</td></tr>
<tr class="separator:a14b35c6b90e6088a46f7cc6882b4a6a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac84cf7bfe9db5f128cf4f39e8e4eeda8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#ac84cf7bfe9db5f128cf4f39e8e4eeda8">SCALE_H</a> =(IMAGE_DRAW_SCALE_H())</td></tr>
<tr class="separator:ac84cf7bfe9db5f128cf4f39e8e4eeda8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abffab32bb1f3d12b9560c16b0cfc2b65"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#abffab32bb1f3d12b9560c16b0cfc2b65">FILL</a> =(IMAGE_DRAW_FILL())</td></tr>
<tr class="separator:abffab32bb1f3d12b9560c16b0cfc2b65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9c94b77bb6e890adf471e511969b015"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#ae9c94b77bb6e890adf471e511969b015">REPEAT</a> =(IMAGE_DRAW_REPEAT())</td></tr>
<tr class="separator:ae9c94b77bb6e890adf471e511969b015"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a173da7178c08d31ceca549cfea555d9c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a173da7178c08d31ceca549cfea555d9c">REPEAT_X</a> =(IMAGE_DRAW_REPEAT_X())</td></tr>
<tr class="separator:a173da7178c08d31ceca549cfea555d9c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbc75424143b4d9a45b110afb3dae3dc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#afbc75424143b4d9a45b110afb3dae3dc">REPEAT_Y</a> =(IMAGE_DRAW_REPEAT_Y())</td></tr>
<tr class="separator:afbc75424143b4d9a45b110afb3dae3dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a125b1faed9901790b84a81ff9d97c33f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a125b1faed9901790b84a81ff9d97c33f">REPEAT_Y_INVERSE</a> =(IMAGE_DRAW_REPEAT_Y_INVERSE())</td></tr>
<tr class="separator:a125b1faed9901790b84a81ff9d97c33f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51ef6c2389782df92f1d678aa36e4bcc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a51ef6c2389782df92f1d678aa36e4bcc">PATCH9</a> =(IMAGE_DRAW_PATCH9())</td></tr>
<tr class="separator:a51ef6c2389782df92f1d678aa36e4bcc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62f11b948ebbd98d54e014b4b014e067"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a62f11b948ebbd98d54e014b4b014e067">PATCH3_X</a> =(IMAGE_DRAW_PATCH3_X())</td></tr>
<tr class="separator:a62f11b948ebbd98d54e014b4b014e067"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5af708d8e7882e777dce06f6cf43d2f7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a5af708d8e7882e777dce06f6cf43d2f7">PATCH3_Y</a> =(IMAGE_DRAW_PATCH3_Y())</td></tr>
<tr class="separator:a5af708d8e7882e777dce06f6cf43d2f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaab8baaafd8985ddcf0d1c071a98b7e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#afaab8baaafd8985ddcf0d1c071a98b7e">PATCH3_X_SCALE_Y</a> =(IMAGE_DRAW_PATCH3_X_SCALE_Y())</td></tr>
<tr class="separator:afaab8baaafd8985ddcf0d1c071a98b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51a0c0aa3799ac782c640123d4c2056d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a51a0c0aa3799ac782c640123d4c2056d">PATCH3_Y_SCALE_X</a> =(IMAGE_DRAW_PATCH3_Y_SCALE_X())</td></tr>
<tr class="separator:a51a0c0aa3799ac782c640123d4c2056d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ef7a85abdf576bad694cba82d420c9b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a8ef7a85abdf576bad694cba82d420c9b">REPEAT9</a> =(IMAGE_DRAW_REPEAT9())</td></tr>
<tr class="separator:a8ef7a85abdf576bad694cba82d420c9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96765b3cc48d01f8bd3f7b3a70c387af"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#a96765b3cc48d01f8bd3f7b3a70c387af">REPEAT3_X</a> =(IMAGE_DRAW_REPEAT3_X())</td></tr>
<tr class="separator:a96765b3cc48d01f8bd3f7b3a70c387af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3872ef082c67db1c1f753ae3d127ade"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="enumawtk_1_1_t_image_draw_type.html#ac3872ef082c67db1c1f753ae3d127ade">REPEAT3_Y</a> =(IMAGE_DRAW_REPEAT3_Y())</td></tr>
<tr class="separator:ac3872ef082c67db1c1f753ae3d127ade"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>图片绘制方法常量定义。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a388ccfbd58159ddc7bbacc0012d014de"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a388ccfbd58159ddc7bbacc0012d014de">&#9670;&nbsp;</a></span>from()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="enumawtk_1_1_t_image_draw_type.html">TImageDrawType</a> awtk.TImageDrawType.from </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把枚举的值转换层枚举。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>枚举的值。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的枚举类型。 </dd></dl>

</div>
</div>
<a id="ade583fca02cb013dcdb10729172253ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade583fca02cb013dcdb10729172253ea">&#9670;&nbsp;</a></span>value()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TImageDrawType.value </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取枚举的值。</p>
<dl class="section return"><dt>返回</dt><dd>枚举的值。 </dd></dl>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="aea3d45e849a8ead37190cd51475f8780"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea3d45e849a8ead37190cd51475f8780">&#9670;&nbsp;</a></span>CENTER</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.CENTER =(IMAGE_DRAW_CENTER())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>居中显示。将图片按原大小显示在目标矩形的中央。 </p>

</div>
</div>
<a id="a576ace3658276d05e4d99c8139c82ade"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a576ace3658276d05e4d99c8139c82ade">&#9670;&nbsp;</a></span>DEFAULT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.DEFAULT =(IMAGE_DRAW_DEFAULT())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>缺省显示。将图片按原大小显示在目标矩形的左上角。 </p>

</div>
</div>
<a id="abffab32bb1f3d12b9560c16b0cfc2b65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abffab32bb1f3d12b9560c16b0cfc2b65">&#9670;&nbsp;</a></span>FILL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.FILL =(IMAGE_DRAW_FILL())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>填充整个区域。将图片缩放至目标矩形的高度或宽度，包装填满整个目标区域，超出不部分不显示。 </p>

</div>
</div>
<a id="a94b568d10373b0848a367bbd64911a7f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94b568d10373b0848a367bbd64911a7f">&#9670;&nbsp;</a></span>ICON</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.ICON =(IMAGE_DRAW_ICON())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>图标显示。同居中显示，但会根据屏幕密度调整大小。 </p>

</div>
</div>
<a id="a62f11b948ebbd98d54e014b4b014e067"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62f11b948ebbd98d54e014b4b014e067">&#9670;&nbsp;</a></span>PATCH3_X</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.PATCH3_X =(IMAGE_DRAW_PATCH3_X())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>水平方向3宫格显示，垂直方向居中显示。 将图片在水平方向上分成等大小的3块，左右两块按原大小显示在目标矩形的左右，中间一块缩放显示在目标区域中间剩余部分。 </p>

</div>
</div>
<a id="afaab8baaafd8985ddcf0d1c071a98b7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaab8baaafd8985ddcf0d1c071a98b7e">&#9670;&nbsp;</a></span>PATCH3_X_SCALE_Y</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.PATCH3_X_SCALE_Y =(IMAGE_DRAW_PATCH3_X_SCALE_Y())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>水平方向3宫格显示，垂直方向缩放显示。 将图片在水平方向上分成等大小的3块，左右两块按原大小显示在目标矩形的左右，中间一块缩放显示在目标区域中间剩余部分。 </p>

</div>
</div>
<a id="a5af708d8e7882e777dce06f6cf43d2f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5af708d8e7882e777dce06f6cf43d2f7">&#9670;&nbsp;</a></span>PATCH3_Y</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.PATCH3_Y =(IMAGE_DRAW_PATCH3_Y())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>垂直方向3宫格显示，水平方向居中显示。 将图片在垂直方向上分成等大小的3块，上下两块按原大小显示在目标矩形的上下，中间一块缩放显示在目标区域中间剩余部分。 </p>

</div>
</div>
<a id="a51a0c0aa3799ac782c640123d4c2056d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51a0c0aa3799ac782c640123d4c2056d">&#9670;&nbsp;</a></span>PATCH3_Y_SCALE_X</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.PATCH3_Y_SCALE_X =(IMAGE_DRAW_PATCH3_Y_SCALE_X())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>垂直方向3宫格显示，水平方向缩放显示。 将图片在垂直方向上分成等大小的3块，上下两块按原大小显示在目标矩形的上下，中间一块缩放显示在目标区域中间剩余部分。 </p>

</div>
</div>
<a id="a51ef6c2389782df92f1d678aa36e4bcc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51ef6c2389782df92f1d678aa36e4bcc">&#9670;&nbsp;</a></span>PATCH9</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.PATCH9 =(IMAGE_DRAW_PATCH9())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>9宫格显示。 将图片分成等大小的9块，4个角按原大小显示在目标矩形的4个角，左右上下和中间5块分别缩放显示在对应的目标区域。 </p>

</div>
</div>
<a id="ae9c94b77bb6e890adf471e511969b015"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9c94b77bb6e890adf471e511969b015">&#9670;&nbsp;</a></span>REPEAT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.REPEAT =(IMAGE_DRAW_REPEAT())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>平铺显示。 </p>

</div>
</div>
<a id="a96765b3cc48d01f8bd3f7b3a70c387af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96765b3cc48d01f8bd3f7b3a70c387af">&#9670;&nbsp;</a></span>REPEAT3_X</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.REPEAT3_X =(IMAGE_DRAW_REPEAT3_X())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>水平方向3宫格显示，垂直方向居中显示。 将图片在水平方向上分成左右相等两块和中间一块，如果图片宽度为奇数，则中间一块为一列数据，如果图片宽度为偶数，则中间一块为二列数据，其他数据分为左右块。 左右两块按原大小显示在目标矩形的左右，中间一列像素点平铺显示在目标区域中间剩余部分。 </p>

</div>
</div>
<a id="ac3872ef082c67db1c1f753ae3d127ade"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac3872ef082c67db1c1f753ae3d127ade">&#9670;&nbsp;</a></span>REPEAT3_Y</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.REPEAT3_Y =(IMAGE_DRAW_REPEAT3_Y())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>垂直方向3宫格显示，水平方向居中显示。 将图片在垂直方向上分成上下相等两块和中间一块，如果图片高度为奇数，则中间一块为一行数据，如果图片高度为偶数，则中间一块为二行数据，其他数据分为上下块 上下两块按原大小显示在目标矩形的上下，中间一块平铺显示在目标区域中间剩余部分。 </p>

</div>
</div>
<a id="a8ef7a85abdf576bad694cba82d420c9b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8ef7a85abdf576bad694cba82d420c9b">&#9670;&nbsp;</a></span>REPEAT9</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.REPEAT9 =(IMAGE_DRAW_REPEAT9())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>平铺9宫格显示。 将图片分成4个角和5块平铺块，4个角按原大小显示在目标矩形的4个角，其余5块会平铺对应的目标区域。 切割方法为（如下图）： 如果图片宽度为奇数，则中间一块为一列数据，如果图片宽度为偶数，则中间一块为二列数据，其他数据分为左右块 如果图片高度为奇数，则中间一块为一行数据，如果图片高度为偶数，则中间一块为二行数据，其他数据分为上下块 中间一块数据根据上面两条规则组成4中情况，分别是一列一行数据，一列两行数据，两列一行数据和两行两列数据 </p>

</div>
</div>
<a id="a173da7178c08d31ceca549cfea555d9c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a173da7178c08d31ceca549cfea555d9c">&#9670;&nbsp;</a></span>REPEAT_X</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.REPEAT_X =(IMAGE_DRAW_REPEAT_X())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>水平方向平铺显示，垂直方向缩放。 </p>

</div>
</div>
<a id="afbc75424143b4d9a45b110afb3dae3dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afbc75424143b4d9a45b110afb3dae3dc">&#9670;&nbsp;</a></span>REPEAT_Y</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.REPEAT_Y =(IMAGE_DRAW_REPEAT_Y())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>垂直方向平铺显示，水平方向缩放。 </p>

</div>
</div>
<a id="a125b1faed9901790b84a81ff9d97c33f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a125b1faed9901790b84a81ff9d97c33f">&#9670;&nbsp;</a></span>REPEAT_Y_INVERSE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.REPEAT_Y_INVERSE =(IMAGE_DRAW_REPEAT_Y_INVERSE())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>垂直方向平铺显示，水平方向缩放(从底部到顶部)。 </p>

</div>
</div>
<a id="adac9b1db819a07d79f8c86a43340c110"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adac9b1db819a07d79f8c86a43340c110">&#9670;&nbsp;</a></span>SCALE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.SCALE =(IMAGE_DRAW_SCALE())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>缩放显示。将图片缩放至目标矩形的大小(不保证宽高成比例)。 </p>

</div>
</div>
<a id="a4e0907cecac16b8cb2d7422ec75f61df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4e0907cecac16b8cb2d7422ec75f61df">&#9670;&nbsp;</a></span>SCALE_AUTO</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.SCALE_AUTO =(IMAGE_DRAW_SCALE_AUTO())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>自动缩放显示。将图片缩放至目标矩形的宽度或高度(选取最小的比例)，并居中显示。 </p>

</div>
</div>
<a id="a1e8cececb879bca17c5264fa6736f2ac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e8cececb879bca17c5264fa6736f2ac">&#9670;&nbsp;</a></span>SCALE_DOWN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.SCALE_DOWN =(IMAGE_DRAW_SCALE_DOWN())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>如果图片比目标矩形大，自动缩小显示，否则居中显示。 </p>

</div>
</div>
<a id="ac84cf7bfe9db5f128cf4f39e8e4eeda8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac84cf7bfe9db5f128cf4f39e8e4eeda8">&#9670;&nbsp;</a></span>SCALE_H</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.SCALE_H =(IMAGE_DRAW_SCALE_H())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>高度缩放显示。将图片缩放至目标矩形的高度，宽度按此比例进行缩放，超出不部分不显示。 </p>

</div>
</div>
<a id="a14b35c6b90e6088a46f7cc6882b4a6a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14b35c6b90e6088a46f7cc6882b4a6a8">&#9670;&nbsp;</a></span>SCALE_W</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TImageDrawType.SCALE_W =(IMAGE_DRAW_SCALE_W())</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>宽度缩放显示。 将图片缩放至目标矩形的宽度，高度按此比例进行缩放，超出不部分不显示。 </p>

</div>
</div>
<hr/>枚举说明文档从下列文件生成:<ul>
<li>output/TImageDrawType.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
